package com.ylesb.aop.service;
/**
 * @title: MyCalculatorImpl
 * @projectName springdemo
 * @description: TODO
 * @author White
 * @site : [www.ylesb.com]
 * @date 2022/7/714:59
 */

import com.ylesb.aop.Action;
import org.springframework.stereotype.Component;

/**
 * @className    : MyCalculatorImpl
 * @description  : [描述说明该类的功能]  
 * @author       : [XuGuangchao]
 * @site         : [www.ylesb.com]
 * @version      : [v1.0]
 * @createTime   : [2022/7/7 14:59]
 * @updateUser   : [XuGuangchao]
 * @updateTime   : [2022/7/7 14:59]
 * @updateRemark : [描述说明本次修改内容] 
 */
@Component//学习五种通知再使用此注解
public class MyCalculatorImpl  implements MyCalculator {
    @Action
    @Override
    public int add(int a, int b) {
        System.out.println(a+"+"+b);
        return a+b;
    }
}
